/*********************************************
 * Copyright (c) 2009 ICBC.
 * All rights reserved.
 * Created on 2009-7-1 04:17:06
 * 
 * Contributors:
 *     ctp - initial implementation
 *********************************************/
package com.icbc.ctpdemo.role;
/**
 * 菜单类.
 * 
 * <pre>
 *  用于角色菜单调整
 * </pre>
 * 
 * @author kfzx-tangk
 * 
 */
public class RoleMenuBean {
	private String menuId;//菜单ID
	private String menuLabel;//菜单标签
	private String menuParentId;//父菜单ID
	private String menuType;//菜单类型
	private String menuState;//菜单激活状态
	private String menuPrivilege;//菜单权限
	private String menuSerialNo;//菜单显示序号
	private String menuLevel;//可使用该菜单的机构层级
	private String menuIdShow;//修正的菜单ID
	
	public String getMenuLevel() {
		return menuLevel;
	}
	public void setMenuLevel(String menuLevel) {
		this.menuLevel = menuLevel;
	}
	public String getMenuIdShow() {//为满足表树的现实要求，id必须不同，因此数据库查出为id+'_'+rownum，此处为修正后id
		if("I".equals(menuType)){
			return menuId+menuParentId;
		}else{
			return menuId;
		}
	}
	public String getMenuId() { 
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getMenuLabel() {
		return menuLabel;
	}
	public void setMenuLabel(String menuLabel) {
		this.menuLabel = menuLabel;
	}
	public String getMenuParentId() {
		return menuParentId;
	}
	public void setMenuParentId(String menuParentId) {
		this.menuParentId = menuParentId;
	}
	public String getMenuType() {
		return menuType;
	}
	public void setMenuType(String menuType) {
		this.menuType = menuType;
	}
	public String getMenuState() {
		return menuState;
	}
	public void setMenuState(String menuState) {
		this.menuState = menuState;
	}
	public String getMenuPrivilege() {
		return menuPrivilege;
	}
	public void setMenuPrivilege(String menuPrivilege) {
		this.menuPrivilege = menuPrivilege;
	}
	public String getMenuSerialNo() {
		return menuSerialNo;
	}
	public void setMenuSerialNo(String menuSerialNo) {
		this.menuSerialNo = menuSerialNo;
	}
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(" menuId=");
		sb.append(menuId);
		sb.append(" menuLabel=");
		sb.append(menuLabel);
		sb.append(" menuParentId=");
		sb.append(menuParentId);
		sb.append(" menuType=");
		sb.append(menuType);
		sb.append(" menuState=");
		sb.append(menuState);
		sb.append(" menuPrivilege=");
		sb.append(menuPrivilege);
		sb.append(" menuSerialNo=");
		sb.append(menuSerialNo);
		sb.append(" menuLevel=");
		sb.append(menuLevel);
		sb.append(" menuIdShow=");
		sb.append(menuIdShow);
		return sb.toString();
	}
}
